home *** CD-ROM | disk | FTP | other *** search
/ Aminet 1 (Walnut Creek) / Aminet - June 1993 [Walnut Creek].iso / aminet / misc / unix / netrc < prev    next >
Text File  |  1993-04-23  |  1KB  |  47 lines

  1. # INSTALLATION
  2. #   1. rename 'netrc' to '.netrc', put it in your home dir and
  3. #      perform 'chmod 600 .netrc'
  4. #   2. Change the string after the 'password' keyword to your
  5. #      email address.
  6. #   3. Change 'litamiga.epfl.ch' to your favourite aminet site.
  7. #      Duplicate everything below if you frequent other sites.
  8. #   4. If you want to log in as 'uploader', start 'ftp -n' and
  9. #      log in using the 'user' command.
  10. #
  11. # USAGE
  12. #   1. When you 'ftp litamiga.epfl.ch', you're being logged in and
  13. #      takem to pub/aminet/ automatically. binary mode will be on.
  14. #   2. The following commands will be available from within 'ftp':
  15. #
  16. #      $new        displays the RECENT file using 'more'
  17. #      $more str   displays the file str
  18. #      $read str   displays str.readme
  19. #      $find str   downloads and uncompresses SHORT and greps it for str
  20. #      $grep str   will grep the already downloaded SHORT for str
  21.  
  22. # Sample entry for litamiga.epfl.ch. If you duplicate, leave a blank
  23. # line between entries and add a blank line before enf of file. Duplicate
  24. # everything below if you're using the macros.
  25.  
  26. machine litamiga.epfl.ch login ftp password your@name.here
  27. macdef init
  28. bin
  29. cd /pub/aminet
  30.  
  31. macdef new 
  32. get /pub/aminet/RECENT |more
  33.  
  34. macdef more
  35. get $1 |more
  36.  
  37. macdef read
  38. get $1.readme |more
  39.  
  40. macdef find 
  41. get /pub/aminet/SHORT.Z SHORT.Z
  42. !uncompress SHORT.Z;echo " ";fgrep -i $1 SHORT
  43.  
  44. macdef grep
  45. !fgrep -i $i SHORT
  46.  
  47.